﻿// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Engine/GameInstance.h"
#include "PJGameInstance.generated.h"

/**
 * 
 */
UCLASS()
class PLATFORMJUMP_API UPJGameInstance : public UGameInstance
{
	GENERATED_BODY()

	
public:
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
	int PlayerHP = 100;

	UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
	int DiamondCount = 0;

	UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
	bool IsDoubleJumpUnlock = false;

	UPROPERTY(VisibleAnywhere, Blueprintable)
	int CurrentLevelIndex = 1;
	
	void SetHP(int NewHP);
	void AddDiamond(int Amount);

	void ChangeLevel(int Level);
	void RestartGame();
};
